import os

str = "小哥哥你来啦"
f= open("test.txt","w")
f.write(str)
f.close()